package finalgame.Engine;
import finalgame.Engine.pokemon.Pokemon;
import finalgame.Engine.trainer.Trainer;


public class HealPokemon {
	public static void healPokemon(Pokemon p){
		p.setHP(p.getMaxHP());
	}
	
	public static void healPokemon(Trainer t){
		Pokemon[] pokemonlist = t.getPokemonInventory();
		for(int i = 0; i<t.getNumberOfPokemon();i++){
			healPokemon(pokemonlist[i]);
		}
	}
}
